package com.test.base.dao;
import com.test.base.entity.NideshopGoodsGallery;
import java.util.List;
import com.test.base.utils.Assist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface NideshopGoodsGalleryDao{
	/**
	 * 获得NideshopGoodsGallery数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    long getNideshopGoodsGalleryRowCount(Assist assist);
	/**
	 * 获得NideshopGoodsGallery数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    List<NideshopGoodsGallery> selectNideshopGoodsGallery(Assist assist);
	/**
	 * 获得一个NideshopGoodsGallery对象,以参数NideshopGoodsGallery对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    NideshopGoodsGallery selectNideshopGoodsGalleryByObj(NideshopGoodsGallery obj);
	/**
	 * 通过NideshopGoodsGallery的id获得NideshopGoodsGallery对象
	 * @param id
	 * @return
	 */
    NideshopGoodsGallery selectNideshopGoodsGalleryById(Object id);
	/**
	 * 插入NideshopGoodsGallery到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertNideshopGoodsGallery(NideshopGoodsGallery value);
	/**
	 * 插入NideshopGoodsGallery中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyNideshopGoodsGallery(NideshopGoodsGallery value);
	/**
	 * 通过NideshopGoodsGallery的id删除NideshopGoodsGallery
	 * @param id
	 * @return
	 */
    int deleteNideshopGoodsGalleryById(Object id);
	/**
	 * 通过辅助工具Assist的条件删除NideshopGoodsGallery
	 * @param assist
	 * @return
	 */
    int deleteNideshopGoodsGallery(Assist assist);
	/**
	 * 通过NideshopGoodsGallery的id更新NideshopGoodsGallery中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateNideshopGoodsGalleryById(NideshopGoodsGallery enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopGoodsGallery中的数据,包括null值
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNideshopGoodsGallery(@Param("enti") NideshopGoodsGallery value, @Param("assist") Assist assist);
	/**
	 * 通过NideshopGoodsGallery的id更新NideshopGoodsGallery中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyNideshopGoodsGalleryById(NideshopGoodsGallery enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopGoodsGallery中属性不为null的数据
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNonEmptyNideshopGoodsGallery(@Param("enti") NideshopGoodsGallery value, @Param("assist") Assist assist);
}